<?php

namespace mbilling\BillingBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class MessagesForm extends AbstractType
{
    protected $users;

    public function __construct($users)
    {
        $this->users = $users;
    }
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder->add('theme', 'text', array('required' => false));
        $builder->add('message', 'text');
        $builder->add('user_to', 'choice', array('choices' => $this->users));
    }
}